/*
 * @Author: FengTeng
 * @Date: 2021-02-12 10:58:30
 * @LastEditTime: 2021-02-21 13:21:41
 * @LastEditors: FengTeng
 * @Description: Description
 * @FilePath: \spa-manage\src\store\auth.permission.js
 */
// 用户权限
export const SET_PEIMISSION_INFO = "SET_PEIMISSION_INFO";
export const CLEAR_PEIMISSION_INFO = "CLEAR_PEIMISSION_INFO";

export const authPermissions = {
  namespaced: true,
  state: {
    permissions: {}
  },
  mutations: {
    [SET_PEIMISSION_INFO](state, permissions) {
      state.permissions = { ...permissions };
    },
    [CLEAR_PEIMISSION_INFO](state) {
      state.permissions = {};
    }
  },
  actions: {},
  getters: {}
};
